</head>
<body>
<div class="f-sep10"></div>
<div class="f-sep10"></div>
<div class="m-hd m-tabs">
  <h2 class="u-tt">{$action_name}碎片</h2>
  <ul id="tabs">
    <li> <a class="z-crt" href="#tab1"><span class="icon">&#xf05a;</span> 基本信息</a></li>
	<li><a href="{$url(admin_list/index)}"><span class="icon">&#xf101;</span> 碎片列表</a></li>
  </ul>
</div>
<div class="f-sep10"></div>
<div class="m-form">
  <form action="<?php echo url('admin_list/'.$action.'_save'); ?>" method="post" id="form">
    <fieldset>
      <div class="formitm">
        <label class="lab" >碎片名称：</label>
        <div class="ipt">
          <input name="title" type="text" class="u-ipt" id="title" value="{$info.title}" datatype="*1-20" errormsg="表单名称至少1~20个字符！" />
          <span class="Validform_checktip">该碎片的描述</span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >碎片标识：</label>
        <div class="ipt">
          <input name="sign" type="text" class="u-ipt" id="sign" value="{$info.sign}" datatype="/^\w+$/" errormsg="碎片标识只能为英文和下划线！" />
          <span class="Validform_checktip">碎片调用标识</span> </div>
      </div>
      <div class="formitm">
        <label class="lab" >碎片内容：</label>
        <div class="ipt">
          <textarea class="u-editor" name="content" id="content" >{$info.content}</textarea>
        </div>
      </div>
      <div class="formitm formitm-1">
        <button class="u-btn" id="submit" type="submit">保存修改</button>
        <button class="u-btn u-btn-c4" id="reset" type="button">重置</button>
        <span id="tip" class="load"></span> </div>
    </fieldset>
	<input name="file_id" id="file_id" type="hidden" value="{$file_id}" />
    <input name="id" type="hidden" value="{$info.id}" />
  </form>
</div>
</body>
<?php echo api('editor','get_editor','content'); ?>
<script>
Do.ready('base','form','dialog', function() {
	//时间选择
	saveform('{$url(admin_list/index)}');
});
</script>